package com.aaa.dem1031.d04;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/10/31  15:43
 */
public class Test {
    public static void main(String[] args) {
        BankCard bankCard=new BankCard(0);
        Boy boy=new Boy(bankCard);
        Girl girl=new Girl(bankCard);
        Thread t1=new Thread(boy,"男");
        Thread t2=new Thread(girl,"女");
        t1.start();
        t2.start();
    }
}
